﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ConsoleApp1.Models.DB {

	/// <summary>
	/// 0表示变电站，1表示接头
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_networkConnector", DisableSyncStructure = true)]
	public partial class TNetworkConnector {

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? ATemp { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? BTemp { get; set; }

		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? CTemp { get; set; }

		[JsonProperty]
		public long? DeviceId { get; set; }

		[JsonProperty]
		public int? DeviceType { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Electricity { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string HardwareVersion { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? HostHumidity { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? HostTemp { get; set; }

		[JsonProperty, Column(IsIdentity = true)]
		public long Id { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string IsOnline { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string Partial { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? ServiceVoltage { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string SoftwareVersion { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string StandbyRegister { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		[JsonProperty]
		public DateTime? Time { get; set; }

	}

}
